-- GENERATED SPELL FOR [Sigrid Iceborn] --


function spell0_31242(pUnit, Event) --@Disengage,n/a--
pUnit:FullCastSpellOnTarget(57635,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31242', 678, 1)
end

function spell1_31242(pUnit, Event) --@Flash Freeze,Self--
pUnit:FullCastSpellOnTarget(61170,pUnit)
pUnit:RegisterEvent('Sorts_31242', 4250, 1)
end

function spell2_31242(pUnit, Event) --@Frostbite Weapon,Self--
pUnit:FullCastSpellOnTarget(61165,pUnit)
pUnit:RegisterEvent('Sorts_31242', 0, 1)
end

function spell3_31242(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(61168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31242', 1500, 1)
end

function Sorts_31242(pUnit, Event)
local choix_sorts_31242 = math.random(0, 3)
if choix_sorts_31242 == 0 then
pUnit:RegisterEvent('spell0_31242', 1, 1)
end
if choix_sorts_31242 == 1 then
pUnit:RegisterEvent('spell1_31242', 1, 1)
end
if choix_sorts_31242 == 2 then
pUnit:RegisterEvent('spell2_31242', 1, 1)
end
if choix_sorts_31242 == 3 then
pUnit:RegisterEvent('spell3_31242', 1, 1)
end
end

function mob31242_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31242', math.random(1500, 3000), 1)
end

function mob31242_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31242_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31242_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31242, 1, 'mob31242_Action')
RegisterUnitEvent(31242, 2, 'mob31242_Leave')
RegisterUnitEvent(31242, 3, 'mob31242_Kill')
RegisterUnitEvent(31242, 4, 'mob31242_Die')
